<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.1/socket.io.js"></script>


<script>
  var socket = io('http://local.pcauto.com.cn');
  socket.on('message', function (data) {
    console.log(data);
    socket.emit('my other event', { my: 'data' });
  });
</script>
